//
//  common.h
//  NewPro
//  恭喜你看到这里。
//  这是一个：没有一金，最低社保，毫无底线拖欠工资的坑爹公司
//  有一个口齿不清,鼻子哼唧不停,不太要脸,但是!很注重标点符号的boss,总给员工画饼,却一直无下限的拖欠工资,而且从来不会通知员工。总是用毫无诚意的“辛苦一下”代替。
//  boss总是会和秘书吵架！不分场合！嗷嗷的！可能是服用了金嗓子！,如果你第一次听到，不要震惊，不要害怕，以后你会经常听到。
//
//  Created by RYX on 2018/10/12.
//  Copyright © 2018年 何荧红. All rights reserved.
//

#ifndef common_h
#define common_h

#define CHATTAB(id) [NSString stringWithFormat:@"chatListTab_%d",id]

//物流查询key
#define WuLiuAppKey @"6464acf07d6479c5a87d4b0e32f16885"

#define MJWeakSelf __weak typeof(self) weakSelf = self;
#define ClassName NSString *className = NSStringFromClass([self class]);
#define ScreenBounds [[UIScreen mainScreen] bounds]
#define ScreenWidth [[UIScreen mainScreen] bounds].size.width
#define ScreenHeight [[UIScreen mainScreen] bounds].size.height

#define Notify_ZFB @"ZFBtongzhi"

//测试地址
//#define IP @"http://192.168.1.143:8081"

//正式
//#define IP @"http://47.99.93.34:8080"



/*
 [[[NSDictionary alloc]initWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"config" ofType:@"plist"]] objectForKey:@"testServerUrl"]
 */
#ifdef DEBUG

//我们的测试
#define IP [[[NSDictionary alloc]initWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"config" ofType:@"plist"]] objectForKey:@"testServerUrl"]

#else

//我们的测试
#define IP [[[NSDictionary alloc]initWithContentsOfFile:[[NSBundle mainBundle]pathForResource:@"config" ofType:@"plist"]] objectForKey:@"serverUrl"]

#endif


// 判断是否是iPhone X系列
#define iPhoneX ([UIScreen mainScreen].bounds.size.height >= 812)

// 状态栏高度
#define STATUS_BAR_HEIGHT (iPhoneX ? 44.f : 20.f)
// 导航栏高度
#define iPhoneX_Top (iPhoneX ? 88.0f : 64.0f)
// tabBar高度
#define TAB_BAR_HEIGHT (iPhoneX ? (49.f+34.f) : 49.f)
// home indicator
#define iPhoneX_Bottom (iPhoneX ? 34.0f : 0.0f)

//分类栏gao'du
#define typeViewHeight 55

//距顶部最小间距
#define topSpacing 20

#define BASECOLOR [UIColor colorWithHexString:@"F4F4F4"]
#define BLUECOLOR [UIColor colorWithHexString:@"#0CA6F0"]

/**
 聊天界面底部的输入框视图
 */

#define SSChatKeyBoardInputViewH      49     //输入部分的高度
#define SSChatKeyBordBottomHeight     220    //底部视图的高度

//键盘总高度
#define SSChatKeyBordHeight   SSChatKeyBoardInputViewH + SSChatKeyBordBottomHeight
#define SafeAreaBottom_Height  [SSDeviceDefault shareCKDeviceDefault].safeAreaBottomHeight

#define PUTFORWARDSUCCESS @"putForwardSuccess"

#import "UIView+Extension.h"
#import "UIImage+Extension.h"
#import "UIButton+Extension.h"
#import "UIBarButtonItem+Extension.h"
#import "UIColor+Extension.h"
#import "UILabel+Extension.h"
#import "CALayer+Addition.h"
#import "NSString+Extension.h"
#import "BRPickerView.h"//日历选择器
#import "HttpTool.h"
#import "MJExtension.h"
#import "JSONModel.h"
#import "MJRefresh.h"
#import "UIScrollView+EmptyDataSet.h"
#import "UIView+Toast.h"
#import "ImgManager.h"
#import "SVProgressHUD.h"
#import "SVPManager.h"
#import "NotOkViewController.h"
#import "UINavigationController+FDFullscreenPopGesture.h"
#import "StrTool.h"
#import "BFGZManager.h"
#import "DateManager.h"
#import "WiFiManager.h"

#endif /* common_h */
